package com.zc.test.kotlinlearn.controller

import com.sun.xml.internal.fastinfoset.util.StringArray
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.servlet.http.HttpServletRequest

@RestController
class HelloWord {
    @RequestMapping("/hi")
    fun sayHi(name : String?, request: HttpServletRequest): ResponseEntity<Any> {
        print("请求地址是：${request.requestURI}")
        var user = User("zc", 26)
        print(user)
        var list = listOf("1", "2")
        list.plus("3")
        print(list)
        val testInt = 123_123_101
        testInt.toString()

        var nulInt : Int?

        return ResponseEntity.ok(name ?: "zc")
    }



}


